import { IParam } from '@/core';
import type { PropType } from 'vue';

//  看板部件输入参数
const kanBanProps = {
	name: {
		type: String,
		default: 'kanban',
	},
	//  看板数据
	items: {
		type: Array as PropType<IParam[]>,
		default: () => [],
	},
	//  空数据提示
	emptyText: {
		type: String,
		default: '',
	},
	emptyTextPSLanguageRes: {
		type: String,
		default: '',
	},
	selections: {
		type: Array as PropType<IParam[]>,
		default: () => [],
	},
};

export interface IKanBanItem extends IParam {
	/**
	 * 主键
	 *
	 * @type {string}
	 * @memberof IKanBanItem
	 */
	srfkey: string;

	/**
	 * 主信息
	 *
	 * @type {string}
	 * @memberof IKanBanItem
	 */
	srfmajortext: string;

	/**
	 *
	 *
	 * @type {[]}
	 * @memberof IKanBanItem
	 */
	children: [];
}

export const KanBanProps = kanBanProps;
